//
//  WCStringToImageTransformer.m
//  WabbitCode
//
//  Created by William Towe on 1/7/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "WCStringToImageTransformer.h"


@implementation WCStringToImageTransformer
+ (Class)transformedValueClass { return [NSImage class]; }
+ (BOOL)allowsReverseTransformation { return NO; }
- (id)transformedValue:(id)value {
    return (value == nil)?[NSImage imageNamed:@"project.icns"]:([value isKindOfClass:[NSImage class]])?value:[NSImage imageNamed:value];
}
@end
